// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CoreLayoutLink generated by hbm2java
 */
@Entity
@Table(name = "core_layout_link", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"store_id", "package", "theme", "layout_update_id" }))
public class CoreLayoutLink implements java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private Integer layoutLinkId;
	private CoreLayoutUpdate coreLayoutUpdate;
	private CoreStore coreStore;
	private String area;
	private String package_;
	private String theme;

	public CoreLayoutLink() {
	}

	public CoreLayoutLink(CoreLayoutUpdate coreLayoutUpdate, CoreStore coreStore) {
		this.coreLayoutUpdate = coreLayoutUpdate;
		this.coreStore = coreStore;
	}

	public CoreLayoutLink(CoreLayoutUpdate coreLayoutUpdate,
			CoreStore coreStore, String area, String package_, String theme) {
		this.coreLayoutUpdate = coreLayoutUpdate;
		this.coreStore = coreStore;
		this.area = area;
		this.package_ = package_;
		this.theme = theme;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "layout_link_id", unique = true, nullable = false)
	public Integer getLayoutLinkId() {
		return this.layoutLinkId;
	}

	public void setLayoutLinkId(Integer layoutLinkId) {
		this.layoutLinkId = layoutLinkId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "layout_update_id", nullable = false)
	public CoreLayoutUpdate getCoreLayoutUpdate() {
		return this.coreLayoutUpdate;
	}

	public void setCoreLayoutUpdate(CoreLayoutUpdate coreLayoutUpdate) {
		this.coreLayoutUpdate = coreLayoutUpdate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "area", length = 64)
	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "package", length = 64)
	public String getPackage_() {
		return this.package_;
	}

	public void setPackage_(String package_) {
		this.package_ = package_;
	}

	@Column(name = "theme", length = 64)
	public String getTheme() {
		return this.theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

}
